#include<stdio.h>
#include<string.h>

int main()
{
    int n, m, p;
    int a[101][101] = { 0 }, b[101][101] = { 0 }, c[101][101] = { 0 };
    scanf("%d%d%d", &n, &m, &p);
    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < m; j++)
        {
            scanf("%d", &a[i][j]);
        }
    }
    for (int i = 0; i < m; i++)
    {
        for (int j = 0; j < p; j++)
        {
            scanf("%d", &b[i][j]);
        }
    }
    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < p; j++)
        {
            for (int q = 0; q < m; q++)
            {
                c[i][j] += a[i][q] * b[q][j];
            }
        }
    }
    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < p; j++)
        {
            printf("%d ", c[i][j]);
            if (j == p - 1)
                printf("\n");
        }
    }

    return 0;
}